﻿
		TweenService

***********************************
function CreateTweener(Instance,tweenInfo,actionProperty)
作用：创建动画
参数: Instance 动画的实例物体，我这里面用的part
	  tweenInfo 动画信息，在案例中已全部赋值（属性可选）
	  actionProperty 动画属性，位置，缩放，旋转，颜色等信息

	Ease类型可选
    {
        Unset = 0,
        Linear = 1,
        InSine = 2O，
        utSine = 3,
        InOutSine = 4,
        InQuad = 5,
        OutQuad = 6,
        InOutQuad = 7,
        InCubic = 8,
        OutCubic = 9,
        InOutCubic = 10,
        InQuart = 11,
        OutQuart = 12,
        InOutQuart = 13,
        InQuint = 14,
        OutQuint = 15,
        InOutQuint = 16,
        InExpo = 17,
        OutExpo = 18,
        InOutExpo = 19,
        InCirc = 20,
        OutCirc = 21,
        InOutCirc = 22,
        InElastic = 23,
        OutElastic = 24,
        InOutElastic = 25,
        InBack = 26,
        OutBack = 27,
        InOutBack = 28,
        InBounce = 29,
        OutBounce = 30,
        InOutBounce = 31,
        Flash = 32,
        InFlash = 33,
        OutFlash = 34,
        InOutFlash = 35
    }

    LoopType类型可选
    {
	    Restart = 0,
	    Yoyo = 1,
	    Incremental = 2
	}

************************************************************
	demo:

	--CreateTweener(创建动画)
	
 local __tweenInfo = TweenParmInfo.New(); 
        __tweenInfo.Duration = 5; 
        __tweenInfo.Ease = EaseType.Linear; --EaseType 
        __tweenInfo.Loop = 0; 
        __tweenInfo.LoopType = EaseLoopType.Restart; --EaseLoopType 
        __tweenInfo.Reverses = false; 
        __tweenInfo.DelayTime = 0; 

        local action ={}; 
        --action.Position = Vector3(3,4,5) -- 
        --action.Scale = Vector3(2,2,2); 
        --action.Rotation = Vector3(45,45,45) 
        action.Color = Vector3(0.5,0.8,0.7) 
        action.Transparency = 0.5 

        __Tweener = TweenService:CreateTweener(WorkSpace.零件,__tweenInfo,action); 

        __Tweener:TweenOncomplate(function () 
                log("=============================结束了") 
         end) 
       __Tweener:TweenPlay(); --开始 
        --__Tweener:TweenPause(); 
        --__Tweener:Restart();


***********************************